home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Netware Super Library
/
Netware Super Library.iso
/
utility
/
dcon11
/
dcfildat.doc
< prev
next >
Wrap
Text File
|
1992-02-06
|
4KB
|
120 lines
Program: DCFILDAT
Package: Part of the DCon Utility Set
Version: 1.1
Date: February 6, 1992
Author: George Spafford
Purpose:
To compare the file dates in a source directory (possibly the server)
to the file dates in a target directory. If the dates are NOT equal,
then either copy, delete or run a batch file.
Procedure:
Place DCFILDAT.EXE in a directory that is in your path. Invoke it as
DCF /S:Source /T:Target </D></C>
/S:Source This is the source directory. This can NOT be a
file specification.
/T:Target This is the target directory that is to be compared
to the source.
ACTION Tokens:
/D Delete the target file(s).
/C Copy source files to the target directory.
no token Run the DCFD.BAT file. Information will be passed to
the .BAT file as follows:
%1 Source Path and File
%2 Target Path
%3 Target Path and File Name
At work, we have an AS/400 D20 running PC support. Any of you out there using
PC Support know the love/hate relation ship that exists with the product. This
program essentially performs the PCSupdate function, but lacks the directory
abilities of PCS. This program, however, is 1/8th the size and much faster.
With this analogy in mind, say you wanted to update your PC Support files, or
at least check them.
DCFILDAT /S:I:\QIWSLFR /T:C:\PCS /C
If the files in I:\QIWSFLR have different dates than the files in C:\PCS, then
they will be copied to C:\PCS.
Say you need a more complex file routine, or you have a homegrown product that
you would like to use, use the DCFD.BAT file option to run your own set of
routines if a logical test proves true.
Example DCFD.BAT :
If exist %3 chmod - %3 <- If the target path + File name exists,
then strip the attributes from it.
if exist %1 Copy %1 %2 <- If the file exists in the source dir, copy it
if exist %3 chmod -r %3 <- If the new target file exists, set it to
read-only.
HISTORY:
v1.1 02/06/92
Sorry for the bugs in the last program guys. I finally gave
up on the new/old logic and just did the "Shotgun" approach.
If the file dates differ, then perform an action. Simplistic
but effective.
v1.0 12/09/92
Initial buggy release.
Register Me:
This package is a little different from some utility packages that are on the
market today. If you only like one or two programs, the individual programs
can be registered for $5 per concurrently used copy. The bargain (in my
eyes) is that the whole package is only $20. It is up to you whether or not
you want the entire package or only specific files. If this package, or one
of the utilities aids you, you should register your copy. For example, say you
want DCMAP & DCUPDAY, then you need only send $10. But please, if you use this
software, register it.
Sincerely,
George Spafford
3001 LakeShore Drive, #329
St. Joseph, MI 49085
Data: (616) 468-5026 Queued Access BBS 14.4Kb USR Dual HST
FIDOnet: 1:2340/0 NEC/NC Site
Sysop: Tim Akright
NOTE: DCFILDAT IS A PART OF THE DIRECTORY CONTROL PACKAGE. THE FOLLOWING
NOTICE PERTAINS TO DCFILDAT AS WELL.
DIRECTORY CONTROL AND ALL OF ITS COMPONENT FILES ARE DISTRIBUTED AS IS.
THE AUTHOR (GEORGE SPAFFORD) MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR
IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY OR
FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THIS SOFTWARE AND
DOCUMENTATION. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DAMAGES,
INCLUDING LOST PROFITS, LOST SAVINGS, OR ANY OTHER INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF OR THE INABILITY TO USE
THIS PROGRAM.
-------------------------------------------------------------------------